/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fasea.index;

/**
 *
 * @author lars-wolfram
 */
public class MyTestStatusListener implements IndexerStatusListener {

    private int indexDocumentCount = 0;
    boolean wasStarted = false;
    boolean wasFinished = false;
    boolean wasAborted = false;
    boolean wasWriteSomething = false;

    public void indexerStarted() {
        wasStarted = true;
    }

    public void indexerFinished() {
        wasFinished = true;
    }

    public void write(String info) {
        wasWriteSomething = true;
    }

    public void indexerAborted() {
        wasAborted = true;
    }

    public void setIndexDocumentsCount(int count) {
        indexDocumentCount = count;
    }

    public int getIndexedDocumentsCount() {
        return indexDocumentCount;
    }

    public void reset() {
        indexDocumentCount = 0;
        wasStarted = false;
        wasFinished = false;
        wasAborted = false;
        wasWriteSomething = false;
    }
};
